import { _decorator, Component, Node } from 'cc';
import { Input } from './input';
const { ccclass, property } = _decorator;

@ccclass('move')
export class move extends Component {
    start() {

    }

    update(deltaTime: number) {
        this.node.setPosition(
			this.node.getPosition().x+20*deltaTime*Input.Instance.x,
			this.node.getPosition().y+20*deltaTime*Input.Instance.y
		)
        console.debug(Input.Instance.x,Input.Instance.y,'assdad')
        return this.node.getPosition()
    }
}

